package phoenics.manpads.stinger.model;

import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * @author Phoenics Chow
 * on 2019年01月25日
 */
public class DatabaseTable implements IModel {
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DatabaseTable.class);
    //table_name tableName, engine, table_comment tableComment, create_time createTime
    private final  BooleanProperty checkSelected=new SimpleBooleanProperty(false);
    private final  StringProperty tableName=new SimpleStringProperty();
    private final  StringProperty tableComment=new SimpleStringProperty();
    private final  StringProperty createTime=new SimpleStringProperty();

    @Override
    public void clear() {
        setCheckSelected(false);
        setCreateTime(null);
        setTableComment(null);
        setTableName(null);
    }


    public boolean isCheckSelected() {
        return checkSelected.get();
    }

    public BooleanProperty checkSelectedProperty() {
        return checkSelected;
    }

    public void setCheckSelected(boolean checkSelected) {
        this.checkSelected.set(checkSelected);
    }

    public String getTableName() {
        return tableName.get();
    }

    public StringProperty tableNameProperty() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName.set(tableName);
    }

    public String getTableComment() {
        return tableComment.get();
    }

    public StringProperty tableCommentProperty() {
        return tableComment;
    }

    public void setTableComment(String tableComment) {
        this.tableComment.set(tableComment);
    }

    public String getCreateTime() {
        return createTime.get();
    }

    public StringProperty createTimeProperty() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime.set(createTime);
    }
}
